import request from "@/utils/request.js";
const reservation = {
  // 获取活动列表
  activityList: (data) => request.post("/api/activity/getList", data),
  // 获取活动信息
  activityDetail: (data) => request.post("/api/activity/getDetail", data),
  // 预约活动
  addActivity: (data) => request.post("/api/activity/addOrder", data),
  // 预约记录
  getOrderList: (data) => request.post("/api/activity/getOrderList", data),
  // 預約詳情
  getOrderDetail: (data) => request.post("/api/activity/getOrderDetail", data),
  //取消预约
  cancelOrder: (data) => request.post("/api/activity/cancelOrder", data),

  // 场馆列表
  stadiumList: (data) => request.post("/api/stadium/getList", data),
  // 预约记录
  stadiumOrderList: (data) => request.post("/api/stadium/getOrderList", data),
  // 取消预约
  stadiumCancelOrder: (data) => request.post("/api/stadium/cancelOrder", data),
  // 场馆详情
  stadiumDetail: (data) => request.post("/api/stadium/getDetail", data),
  // 提交场馆
  addStadium: (data) => request.post("/api/stadium/addOrder", data),
  // 時間
  getDatestadium: (data) => request.post("/api/stadium/getDate", data),
};
export default reservation;
